{include file="user.header.html"}
<div id="main" class="clearfix"> {include file="user.menu.html"}
  <div id="right"> {include file="user.curlocal.html"}
    <div class="wrapful">{include file="user.submenu.html"}
      <div class="wrap">
        <div class="public table deposit">
          <div class="recordlist"> 
            <!--{if $recordlist}-->
            <div class="notice-word mb20">
              <p>冻结资金明细</p>
            </div>
            <!--{/if}-->
            <div class="title clearfix">
              <form method="get" class="float-left" action="{url route='deposit/frozenlist'}">
        		<!--{if !$app->urlManager->enablePrettyUrl}-->
      			<input type="hidden" name="r" value="deposit/frozenlist" />
      			<!--{/if}-->
                <input type="text" name="add_time_from" id="add_time_from" value="{$smarty.get.add_time_from}" />
                <span>-</span>
                <input type="text" name="add_time_to" id="add_time_to" value="{$smarty.get.add_time_to}" />
                <input type="submit" class="btn-record" value="{$lang.search}" />
              </form>
              <!--{if $filtered}--> 
         		<a class="detlink" href="{url route='deposit/frozenlist'}">{$lang.cancel_query}</a>
        		<!--{/if}-->
              <div class="float-right"> 总冻结金额 <strong class="price">{$total.amount|default:0}</strong> 元 </div>
       
            </div>
            <ul class="subtit">
              <li class="clearfix">
                <div class="time">创建日期</div>
                <div class="info">名称 | 备注</div>
                <div class="tradeNo">商户订单号 | 交易号</div>
                <div class="party">对方</div>
                <div class="amount">金额 | 明细</div>
                <div class="status">状态</div>
                <div class="detail">操作</div>
              </li>
            </ul>
            <div class="content">
              <ul>
                <!--{foreach from=$recordlist item=record}-->
                <li class="clearfix">
                  <div class="time">{$record.add_time|date_format:"%Y-%m-%d %H:%M:%S"}</div>
                  <div class="info break-word">{$record.title|truncate:30}</div>
                  <div class="tradeNo"><span class="break-word">{$record.bizOrderId} | {$record.tradeNo}</span></div>
                  <div class="party center">{$record.partyInfo.name}</div>
                  <div class="amount center"> <strong class="price"> 
                    <!--{if $record.flow eq 'income'}--> 
                    <span class="green">+{$record.amount}</span> 
                    <!--{else}--> 
                    <span class="f60">-{$record.amount}</span> 
                    <!--{/if}--> 
                    </strong> </div>
                  <div class="status"> <span class="{if in_array($record.status, array('CLOSED')) || in_array($record.refund.status, array('CLOSED'))}gray{/if}">{$record.status_label}</span> </div>
                  <div class="detail"> <a href="{url route='deposit/record' tradeNo=$record.tradeNo}">查看</a> </div>
                </li>
                <!--{/foreach}-->
              </ul>
              <!--{if !$recordlist}-->
              <div class="notice-word mt10">
                <p>{$lang.no_records}</p>
              </div>
              <!--{/if}--> 
            </div>
            <div class="mt20 clearfix center">{include file="page.bottom.html"}</div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
<script type="text/javascript">
$(function(){
    $('#add_time_from').datepicker({ dateFormat: 'yy-mm-dd'});
    $('#add_time_to').datepicker({ dateFormat: 'yy-mm-dd'});
});
</script> 
{include file="user.footer.html"} 